package com.atguigu.boot.controoler;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;


@RestController//@Controller和@ResponseBody的集合写法
public class HelloController {

    @RequestMapping("/hello")
    public String handle01(){
        System.out.println("我被调用了");
        return "Hello Spring Boot2!";
    }
}
